//
//  HYCNightManager.m
//  FamilyTravel
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HYCNightManager.h"
#import "HYCSingleton.h"

#define BLACK [UIColor blackColor]
#define WHITE [UIColor whiteColor]


@implementation HYCNightManager

+ (void)setColorWithButton:(UIButton *)button {
    
    
    
    if ([HYCSingleton shareSingleton].isNight) {
        [button setTitleColor:WHITE forState:UIControlStateNormal];
        button.backgroundColor = [UIColor grayColor];
    }else {
        [ button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
        button.backgroundColor = BLACK;
    }
}

+ (void)setColorWithLabel:(UILabel *)label {
    if ([HYCSingleton shareSingleton].isNight) {
        label.textColor = WHITE;
    } else {
        label.textColor = BLACK;
    }
}

+ (void)setColorWIthView:(UIView *)view {
    if ([HYCSingleton shareSingleton].isNight) {
        view.backgroundColor = BLACK;
    } else {
        view.backgroundColor = WHITE;
    }
}

















@end
